import _http from '@/utils/http'

export default {
    baseGoodsList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/list',
            apiName: '设备商品列表',
        }, params, loading, headers)
    },

    baseGoodsInfo(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/info',
            apiName: '设备商品详情',
        }, params, loading, headers)
    },

    baseGoodsDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/delete',
            apiName: '设备商品删除',
        }, params, loading, headers)
    },

    baseGoodsCreate(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/create',
            apiName: '设备商品新增',
        }, params, loading, headers)
    },

    baseGoodsModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/modify',
            apiName: '设备商品编辑',
        }, params, loading, headers)
    },

    baseGoodsStatus(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/warehouse/base-goods/shelve-status',
            apiName: '设备商品状态调整',
        }, params, loading, headers)
    },

    packageChooseList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/package/choose-list',
            apiName: '套餐下拉',
        }, params, loading, headers)
    },

    modelChooseList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/yilian/equipment-type/choose-list',
            apiName: '型号下拉',
        }, params, loading, headers)
    },
}
